<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象解构</title>
</head>
<body>
    

    <script>
        // 结构数组对象
        const pig = [
            {
                username :'佩奇',
                age : 6
            }
        ]

        const [{username,age}] = pig
    </script>
</body>
</html>